<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<base href="${BaseContext}">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
    
        <!-- 可选的 Bootstrap 主题文件（一般不用引入） -->
        <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
    
        <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
        <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
    <title>课程管理</title>
    <style type="text/css">
        .jumbotron{
            width:90%;
            margin:0 auto;
            padding-left:10%;
            border-radius:5px;
            margin-top:-60px;
            margin-bottom: 24px;
		}
        .form-control option{
            border: 0;
        }
    </style>
</head>
<body>
    <div class="container">
        <nav class="navbar navbar-inverse">
        <div class="container-fluid">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">视频管理系统</a>
            </div>
    
            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">
                <li><a href="admin/video/manage">视频管理</a></li>
				<li><a href="admin/speaker/manage">主讲人管理<span class="sr-only">(current)</span></a></li>
				<li><a href="admin/course/manage">课程管理</a></li>
				<li><a href="admin/statistics/show">统计分析</a></li>
            </ul>
            
            <ul class="nav navbar-nav navbar-right">
				<li><a href="admin/logout"><span>${admin.login_name }</span><span
							class="glyphicon glyphicon-log-out" aria-hidden="true"></span></a></li>
            </ul>
            </div><!-- /.navbar-collapse -->
        </div><!-- /.container-fluid -->
        </nav>
        <div class="jumbotron">
            <h2>编辑主讲人-主讲人管理</h2>
        </div>
    </div> 
        <div class="container">
            <form class="form-horizontal" action="${speaker.id==null?'admin/speaker/addSpeaker':'admin/speaker/updateSpeaker' }"> 
                <div class="form-group"> 
                	<input type="hidden" name="randomCode"  value="${time }">
                	<input type="hidden" name="id" value="${speaker.id }">
                    <label for="inputEmail3" class="col-sm-2 control-label">名字</label> 
                    <div class="col-sm-10"> 
                        <input type="text" class="form-control" id="inputEmail3" placeholder="请填写姓名" name="speaker_name" value="${speaker.speaker_name }"> 
                    </div> 
                </div> 
                <div class="form-group"> 
                    <label for="inputEmail3" class="col-sm-2 control-label">职业</label> 
                    <div class="col-sm-10"> 
                        <input type="text" class="form-control" id="inputEmail3" placeholder="请填写职业" name="speaker_job" value="${speaker.speaker_job }"> 
                    </div> 
                </div>
                <div class="form-group"> 
                    <label for="inputEmail3" class="col-sm-2 control-label">头像图片</label> 
                    <div class="col-sm-10"> 
                        <input type="text" class="form-control" id="inputEmail3" placeholder="请填写图片网络地址" name="speaker_head_url" value="${speaker.speaker_head_url }"> 
                    </div> 
                </div>
                <div class="form-group"> 
                        <label for="inputEmail3" class="col-sm-2 control-label">简介</label> 
                        <div class="col-sm-10"> 
                            <!-- <input type="email" class="form-control" id="inputEmail3" placeholder="请填写简介">  -->
                            <textarea class="form-control" name="speaker_descr">${speaker.speaker_descr }</textarea>
                        </div> 
                    </div> 
                <div class="form-group"> 
                    <div class="col-sm-offset-2 col-sm-10"> 
                        <button type="submit" class="btn btn-primary">保存</button> 
                        <a href="admin/speaker/manage"><button type="button" class="btn btn-default">返回</button></a>
                    </div> 
                </div> 
            </form>
        </div>
    
</body>
</html>